package itheima.entity;

import java.util.Date;
import java.util.List;

public class User {
    private Integer id;
    private String username;
    private Date birthDayYa;
    private String sex;
    private String add;
    private UserInfo userInfo;
    private List<Order> orders;


    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", birthDayYa=" + birthDayYa +
                ", sex='" + sex + '\'' +
                ", add='" + add + '\'' +
                ", userInfo=" + userInfo +
                ", orders=" + orders +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getBirthDayYa() {
        return birthDayYa;
    }

    public void setBirthDayYa(Date birthDayYa) {
        this.birthDayYa = birthDayYa;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAdd() {
        return add;
    }

    public void setAdd(String add) {
        this.add = add;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }
}
